package com.member.provider.controller;

import org.junit.jupiter.api.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @auther liujian
 * @date 2024/3/21 15:38
 */
public class Testone {

    @Test
    public void Test(){


        String toor = new BCryptPasswordEncoder().encode("toor");
        System.out.println(toor);

    }

    @Test
    public void Test2(){
        boolean toor = new BCryptPasswordEncoder().matches("toor","$2a$10$EgEvkZBXQU6OXzEq1EjeSeVCkwb3MepNXOe.0m70YrmTASP8xGpTC");
        System.out.println(toor);
    }

}
